package com.appleyk.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

/**
 * <p>越努力，越幸运</p>
 * 基于Lombok的builder模式
 * @author appleyk
 * @version V.0.1.1
 * @blob https://blog.csdn.net/appleyk
 * @date created on  9:35 下午 2021/2/20
 */
@Builder
@Data
@AllArgsConstructor
public class MessageEntity {
    private String name;
    private String content;
    public static void main(String[] args) {
        MessageEntity entity = MessageEntity.builder().name("消息").content("lombok好牛逼啊").build();
        System.out.println(entity.getName()+":"+entity.getContent());
    }
}
